package com.avic.service;

import com.avic.dal.condition.PageQuerySingleSoldierCondition;
import com.avic.dal.model.SingleSoldierResource;

import java.util.List;

/**
 * 单兵资源
 *
 * @author: huangsheng
 * @date: 2018/9/3 下午3:29
 */
public interface SingleSoldierResourceService {

    /**
     * 分页查询列表
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:20
     */
    List<SingleSoldierResource> itemList(PageQuerySingleSoldierCondition pageQuerySingleSoldierCondition);

    /**
     * 数据总数
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:20
     */
    int queryRecordsTotal(PageQuerySingleSoldierCondition pageQuerySingleSoldierCondition);

    /**
     * 新增单兵资源
     *
     * @return 创建数据ID
     */
    int create(SingleSoldierResource singleSoldier);

    /**
     * 修改单兵资源
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:23
     */
    void update(SingleSoldierResource singleSoldier);

    /**
     * 删除单兵资源
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:24
     */
    void delete(int id);
}
